<?php 
namespace App\Http\Controllers\User;

use App\Model\Interlocution;
use App\Http\Controllers\Controller;
use Session;

class MsgCallbackController extends Controller
{
	public function __construct()
	{
		$this->middleware('RejectNobody');
	}

	public function Index()
	{
		$user = Interlocution::Get_Info(Session::get('id' ,'default'));
		$arr = [];
		if ($user != 0) {
			$arr['status'] = 1;
		} else {
			$arr['status'] = 0;
		}
		$arr['info'] = $user;
		return response()->json($arr);
	}

}